<div class="footer">
    <div class="footer-inner">
        <div class="footer-content">
			<span class="bigger-120">
				<span class="blue bolder">房屋管理系統</span>
				&copy; 2018-2020
			</span>

            &nbsp; &nbsp;
            <span class="action-buttons">
				<a href="#">
					关于我们
				</a>

				<a href="#">
					联系我们
				</a>

				<a href="#">
					合作伙伴
				</a>

				<a href="#" class="wechat_icon">
					关注公众号
				</a>
			</span>
        </div>
        <div class="code_wrap">
            <ul style="list-style: none;">
                <li><img id="img" class="wechat" src="/images/gongzhonghao.jpg" alt="" style="display: none"></li>
            </ul>
        </div>
    </div>
</div>
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
<script>
    var t1 = $(window).height(); //获取屏幕高度
    var t2 = $(window).width();  //获取屏幕宽度
    var t3 = $("#img").height(); 　   //获得当前img高度
    var t4 = $("#img").width();　　　　//获取当前img宽度
    $(".wechat_icon").hover(function () {
        $("#img").css({display: "block", marginTop: (t1 - t3) / 2, marginLeft: (t2 - t4) / 2});
    }, function () {
        $("#img").hide();
    });
</script>